package com.jhhc.utils;

//定义一个json对象，用于返回
public class JsonResult {


    // 先默认一个状态码是失败
    private Integer StatusCode = 900;
    private boolean Succeeded = false;
    private Object Data;

    private String Remark;
    public Integer getStatusCode() {
        return StatusCode;
    }

    public void setStatusCode(Integer StatusCode) {
        this.StatusCode = StatusCode;
    }

    public boolean isSucceeded() {
        return Succeeded;
    }

    public void setSucceeded(boolean Succeeded) {
        this.Succeeded = Succeeded;
    }

    public Object getData() {
        return Data;
    }

    public void setData(Object Data) {
        this.Data = Data;
    }

    public String getRemark() {
        return Remark;
    }

    public void setRemark(String remark) {
        Remark = remark;
    }

    public static JsonResult getJson(String remark){
        JsonResult jsonResult = new JsonResult();
        jsonResult.setRemark(remark);
        jsonResult.setSucceeded(false);
        jsonResult.setStatusCode(401);
        return jsonResult;
    }
}
